package com.jxtc.enterprise.common.constants;


import lombok.Getter;

@Getter
public enum TransactionTypeEnum {
    /**
     * 1x 订单支付，分为：余额支付，余额支付 + 微信支付，微信支付 3 种
     */
    WALLET_PAY(10, "余额支付"),
    WALLET_WX_PAY(11, "余额 + 微信支付"),
    WX_PAY(12, "微信支付"),

    /**
     * 2x 取消订单，订单退款分为：余额支付退款，余额支付 + 微信支付退款，微信支付退款 3 种
     */
    WALLET_REFUND(20, "余额支付退款"),
    WALLET_WX_REFUND(21, "余额 + 微信支付退款"),
    WX_REFUND(22, "微信支付退款"),

    /**
     * 3x HR 充值，充值方式分为：批量充值、单个充值 2 种
     */
    BULK_RECHARGE(30, "批量充值"),
    RECHARGE(31, "单个充值"),

    /**
     * 4x 补偿相关
     */
    COMPENSATION(40, "员工投诉，平台向员工补偿费用"),

    /**
     * 5x 未知状态码
     */
    UNKNOWN(50, "未知");

    private final Integer value;

    private final String description;

    TransactionTypeEnum(Integer value, String description) {
        this.value = value;
        this.description = description;
    }
}
